//
//  ReportPopView.m
//  QT
//
//  Created by 甘世清 on 2025/1/5.
//

#import "ReportPopView.h"

@implementation ReportPopView

- (void)SQ_UIViewForSelfView{
    
    self.backgroundColor = UIColor.whiteColor;
    self.layer.cornerRadius = 30;
    self.layer.masksToBounds = YES;
    UIView * lineView = [[UIView alloc]init];
    lineView.backgroundColor = SQColorF5F5F5;
    lineView.layer.cornerRadius = 4;
    [self addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self).offset(10);
        make.width.mas_equalTo(50);
        make.height.mas_equalTo(8);
    }];
    
    
    [self addSubview:self.jubaoBtn];
    [self addSubview:self.laheiBtn];
    [self.jubaoBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(70);
        make.width.mas_equalTo(SCREEN_WIDETH);
        make.top.equalTo(lineView.mas_bottom).offset(20);
        make.centerX.equalTo(self);
    }];
    
    UIView * lineView2 = [[UIView alloc]init];
    lineView2.backgroundColor = SQColorF1F1F1;
    [self addSubview:lineView2];
    [lineView2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self.jubaoBtn.mas_bottom).offset(5);
        make.width.mas_equalTo(SCREEN_WIDETH);
        make.height.mas_equalTo(2);
    }];
    
    [self.laheiBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.height.mas_equalTo(70);
        make.width.mas_equalTo(SCREEN_WIDETH);
        make.top.equalTo(self.jubaoBtn.mas_bottom).offset(10);
        make.centerX.equalTo(self);
    }];
    
}

- (SQCustomButton *)jubaoBtn{
    if (!_jubaoBtn) {
        _jubaoBtn = [[SQCustomButton alloc]initType:SQCustomButtonLeftImageType imageSize:CGSizeMake(18, 18) midmargin:10];
        _jubaoBtn.text = SQNSLocalString(@"举报");
        _jubaoBtn.font = FONT_MEDIUM(14);
        _jubaoBtn.textColor = SQColor333333;
        _jubaoBtn.image = SQGetImage(@"jubao");
    }
    return _jubaoBtn;
}
- (SQCustomButton *)laheiBtn{
    if (!_laheiBtn) {
        _laheiBtn = [[SQCustomButton alloc]initType:SQCustomButtonLeftImageType imageSize:CGSizeMake(18, 18) midmargin:10];
        _laheiBtn.text = SQNSLocalString(@"拉黑");
        _laheiBtn.font = FONT_MEDIUM(14);
        _laheiBtn.textColor = SQColor333333;
        _laheiBtn.image = SQGetImage(@"黑名单");
    }
    return _laheiBtn;
}

@end
